import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../app_views.dart';

/// 商城页面（占位展示）
class StoreView extends GetView<StoreLogic> {
  const StoreView({super.key});

  @override
  Widget build(BuildContext context) {
    return Obx(() {
      final state = controller.state.value;

      return Scaffold(
        appBar: AppBar(title: const Text('神秘市集')),
        body: ListView.builder(
          padding: const EdgeInsets.all(16),
          itemCount: state.featured.length,
          itemBuilder: (_, index) {
            final item = state.featured[index];
            return Card(
              color: Colors.white.withOpacity(0.08),
              margin: const EdgeInsets.only(bottom: 12),
              child: ListTile(
                title: Text(item),
                subtitle: const Text('敬请期待上架'),
                trailing: const Icon(Icons.shopping_bag),
              ),
            );
          },
        ),
      );
    });
  }
}
